# Maintainer: Matthew "Madness" Evan <mattmadness@420blaze.it>
pkgname=unattended-security-upgrades
pkgver=0.1.1
pkgrel=0
pkgdesc="A daemon that upgrades packages that have security vulnerabilities and their dependencies when on an unmetered internet connection without interrupting work or shutdowns."
arch=(any)
license=('GPL3')
url='https://codeberg.org/Sapphire/unattended-security-upgrades'
depends=('bash' 'pacman' 'arch-audit')
optdepends=('networkmanager: checking for unmetered connection')
source=("https://codeberg.org/Sapphire/unattended-security-upgrades/archive/${pkgver}.tar.gz")
sha256sums=('83e2bbda6decb9a2e4309cbacffceab51a123c111e0f54bc05c3f246f4a38da8')

package() {
	cd "$srcdir/unattended-security-upgrades"
	mkdir -p ${pkgdir}/usr/share/licenses/unattended-security-upgrades/
	cp LICENSE ${pkgdir}/usr/share/licenses/unattended-security-upgrades/
	make install PREFIX=${pkgdir}
}	
